package com.pctx.registerlogin.dao;

import com.pctx.registerlogin.pojo.User;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    User selectByUsername(String username);

    User selectByMobile(String mobile);
    User   selectByUpperleaderuuid(String upperleader);
    int deleteByPrimaryKey(Long id);

    int deleteByname(String username);
    int update(User user);
    int updateByMobileSelective(User user);

    int updateByusername(User user);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> selectHasSubordinate(String companyuuid);
}